import request from '@/utils/request'

// 查询审批流程列表
export function listCheckprocess(query) {
  return request({
    url: '/Wecom/checkprocess/list',
    method: 'get',
    params: query
  })
}



// 查询审批流程详细
export function getCheckprocess(processId) {
  return request({
    url: '/Wecom/checkprocess/' + processId,
    method: 'get'
  })
}

// 新增审批流程
export function addCheckprocess(data) {
  return request({
    url: '/Wecom/checkprocess',
    method: 'post',
    data: data
  })
}



// 修改审批流程
export function updateCheckprocess(data) {
  return request({
    url: '/Wecom/checkprocess',
    method: 'put',
    data: data
  })
}

// 删除审批流程
export function delCheckprocess(processId) {
  return request({
    url: '/Wecom/checkprocess/' + processId,
    method: 'delete'
  })
}

